Skip to content

Conversation

dimitre
Copy link
Member

@dimitre dimitre commented May 21, 2024

PG usually copy files from templates folder to project
renames them (or rename in the copy process)
replaces content inside of them (opening and saving)

this PR creates an object to hold the input file path (template), output file path (project) and replacement pairs
so it can do a straight copy if no replacements are asked
or open the files from source (template)
replaces content
and write definitive content in the project folder.

it also address a problem in msys2 where std::filesystem is not considering overwrite_existing and throwing errors. it removes destination file before copying in msys2 only.

@dimitre dimitre merged commit 236309f into openframeworks:master May 21, 2024
@dimitre dimitre deleted the msysfix branch May 21, 2024 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant